package com.fortune.dto.in.dUserMgt;

import com.fortune.constants.PatternConstants;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;

public class DUserEditDto {
	@NotEmpty(message="员工编号不能为空")
	@ApiModelProperty(required=true, example="员工编号")
	private String account;
	@NotEmpty(message="员工id不能为空")
	@ApiModelProperty(required=true, example="员工id")
	private String userId;
	@NotEmpty(message="员工姓名不能为空")
	@ApiModelProperty(required=true, example="员工姓名")
	private String name;
	@Pattern(regexp=PatternConstants.PHONE, message="手机号格式错误")
	@ApiModelProperty(required=true, example="手机号码")
	private String phone;
	@NotEmpty(message="岗位id不能为空")
	@ApiModelProperty(required=true, example="岗位id")
	private String roleId;

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getRoleId() {
		return roleId;
	}
	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

}
